package com.hiwhitley.easy.day05;

/**
 * Created by hiwhitley on 2016/8/4.
 */
public class Solution2 {
    public static String replaceSpace(StringBuffer str) {
        return str.toString().replaceAll(" ", "%20");
    }

    public static void main(String[] args) {
        System.out.println(replaceSpace(new StringBuffer("helloworld ")));
    }
}
